package com.qth.valet.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 流水表
 * @author 蔡徐坤
 * @since 2025-08-26
 */
@Data
@TableName("payment")
public class Payment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Integer userId;

    @TableField("order_id")
    private String orderId;

    @TableField("transaction_id")
    private String transactionId;

    @TableField("type")
    private Integer type;

    @TableField("coupon_user_id")
    private Long couponUserId;

    @TableField("coupon_amount")
    private Long couponAmount;

    @TableField("total_amount")
    private Long totalAmount;

    @TableField("pay_amount")
    private Long payAmount;

    /** 支付渠道（0微信 1支付宝 2银行卡） */
    @TableField("pay_channel")
    private Integer payChannel;

    @TableField("pay_time")
    private Date payTime;

    @TableField("callback_time")
    private Date refundTime;
}
